package com.weaver.drools.business.execution.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.weaver.drools.business.execution.service.IEAqPnlPor163Service;
import com.weaver.drools.common.dao.EAqPnlPor163Dao;
import com.weaver.drools.common.entity.EAqPnlPor163;
@Service
public class EAqPnlPor163ServiceImpl implements IEAqPnlPor163Service {
	
	@Autowired
	private EAqPnlPor163Dao EAqPnlPor163Dao;
	
	@Override
	public EAqPnlPor163 findById(Long porid) {
		// TODO Auto-generated method stub
		return EAqPnlPor163Dao.findEAqPnlPor163ByPorid(porid);
	}

	@Override
	public void saveEAqPnlPor163(EAqPnlPor163 pnlPor163) {
		EAqPnlPor163Dao.saveOrUpdate(pnlPor163);
	}

	@Override
	public void updateEAqPnlPor163(EAqPnlPor163 pnlPor163) {
		EAqPnlPor163Dao.saveOrUpdate(pnlPor163);
	}

	@Override
	public void deleteById(Long porid) {
		EAqPnlPor163Dao.deleteById(porid);
	}

	@Override
	public Long findId() throws Exception {
		String sql="SELECT SE_E_AQ_PNL_POR_163.NEXTVAL ID FROM DUAL";
		return EAqPnlPor163Dao.findIdBySQL(sql);
	}

}
